<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="judy.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="judy.configuration.html">运行时配置</a></div>
 <div class="up"><a href="judy.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="judy.installation" class="section">
 <h2 class="title">安装</h2>

 <p class="para">
  此 <a href="http://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> 扩展未与
PHP 捆绑。
 </p>

 <p class="para" id="judy.pecl">
  安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.html" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
  <a href="http://pecl.php.net/package/judy" class="link external">&raquo;&nbsp;http://pecl.php.net/package/judy</a>
 </p>

 <p class="para" id="judy.pecl.win">
  The latest PECL/judy Win32 DLL is available here:
  <a href="http://pecl4win.php.net/ext.php/php_judy.dll" class="link external">&raquo;&nbsp;php_judy.dll</a>
 </p>

 <div class="section" id="judy.install.linux">
  <h2 class="title">Installation on Linux Systems</h2>
  <div class="section">
   <h2 class="title">From sources</h2>
   <p class="para">
    Download and install <a href="http://judy.sourceforge.net" class="link external">&raquo;&nbsp;libJudy</a>, then :
    <div class="example-contents"><div class="cdata"><pre>
     phpize
     ./configure --with-judy[=DIR]
     make
     make test
     make install
    </pre></div></div>

   </p>
  </div>
  <div class="section">
   <h2 class="title">Ubuntu/Debian</h2>
   <p class="para">
    libJudy can be installed with apt-get :
    <div class="example-contents"><div class="cdata"><pre>
    apt-get install libjudydebian1 libjudy-dev
    </pre></div></div>

    Then by installing the Judy extension from PECL or from the sources. 
   </p>
  </div>
 </div>

 <div class="section" id="judy.install.windows">
  <h2 class="title">Installation on Windows Systems</h2>
  <p class="para">
   Download <a href="http://judy.sourceforge.net" class="link external">&raquo;&nbsp;libJudy</a>, then 
   extract the sources and open the Visual Studio command prompt and navigate to 
   the source directory. Then execute :
   <div class="example-contents"><div class="cdata"><pre>build</pre></div></div>

   This creates &quot;Judy.lib&quot;, copy this into the php-sdk library folder and name it 
   &quot;libJudy.lib&quot; Then copy the include file &quot;judy.h&quot; into the php-sdk includes folder.
  </p>
  <p class="para">
   Next, the PHP Judy extension can be installed from PECL or from the sources by 
   extracting the pecl/judy into your build folder where the build scripts will be 
   able to pick it up, e.g.:
   <div class="example-contents"><div class="cdata"><pre>
    C:\php\pecl\judy\
   </pre></div></div>

   If your source of PHP is located in:
   <div class="example-contents"><div class="cdata"><pre>
    C:\php\src\
   </pre></div></div>

   The rest of the steps is pretty straight forward, like any other external extension:
   <div class="example-contents"><div class="cdata"><pre>
    buildconf
    configure --with-judy=shared
    nmake
   </pre></div></div>

  </p>
 </div>

 <div class="section" id="judy.install.macos">
  <h2 class="title">Installation on Mac OS X</h2>
  <p class="para">
   Download and install <a href="http://judy.sourceforge.net" class="link external">&raquo;&nbsp;libJudy</a>. 
   Then install the Judy extension from PECL or from the sources.
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="judy.requirements.html">需求</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="judy.configuration.html">运行时配置</a></div>
 <div class="up"><a href="judy.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
